package com.my.api.response.group;

import java.io.Serializable;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;
/**
 * 加群请求／邀请
 * @author ch
 *
 */
public class AddGroupResponse implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -5187380615000288436L;


	/**
	 * 是否同意请求
	 */
	private Boolean approve = Boolean.FALSE;
	

	/**
	 * 拒绝理由（仅在拒绝时有效）
	 */
	private String reason="拒绝被添加或者邀请";
	
	
	
	
	
	public AddGroupResponse() {
		super();
	}

	

	public AddGroupResponse(Boolean approve) {
		super();
		this.approve = approve;
	}

	

	public AddGroupResponse(Boolean approve, String reason) {
		super();
		this.approve = approve;
		this.reason = reason;
	}



	public Boolean getApprove() {
		return approve;
	}



	public void setApprove(Boolean approve) {
		this.approve = approve;
	}



	public String getReason() {
		return reason;
	}



	public void setReason(String reason) {
		this.reason = reason;
	}



	@Override
	public String toString() {
		return JSON.toJSONString(this, SerializerFeature.UseISO8601DateFormat);
	}
}
